﻿//14.A dictionary is stored as a sequence of text lines containing words and their explanations. Write a program that enters a word and translates it by using the dictionary. Sample dictionary:
//.NET – platform for applications from Microsoft
//CLR – managed execution environment for .NET
//namespace – hierarchical organization of classes

using System;
using System.Collections.Generic;

namespace Dictionary
{
    class Dictionary
    {
        static void Main()
        {
            Dictionary<string, string> myDictionary = new Dictionary<string, string>();
            myDictionary[".NET"] = "platform for applications from Microsoft";
            myDictionary["CLR"] = "managed execution environment for .NET";   
            myDictionary["namespace"] = "hierarchial organization of classes";
            myDictionary.Add("C#", "multi-paradigm programming language");

            Console.Write("Enter the word you're looking for: ");
            string word = Console.ReadLine();

            if (myDictionary.ContainsKey(word))
            {
                Console.WriteLine(myDictionary[word]);
            }
            else
            {
                Console.WriteLine("The word was not found.");
            }
        }
    }
}
